import { uiwu } from "@/api/interface/interface"
import type { setInfoItf } from './typs'

/** 添加粉丝群 **/
export const addUserFansApi = async(data): Promise<any> => {
    return await uiwu.post({
        url: `fans/addUserFansChat`,
        data
    })
}

/** 用户粉丝列表 **/
export const userFansChatListApi = async({ page = 1, limit = 5 }): Promise<any> => {
    return await uiwu.get({
        url: `fans/userFansChatList?page=` + page + '&limit=' + limit,
    })
}

/** 设置信息 **/
export const setInfoApi = async(data: Partial<setInfoItf>): Promise<any> => {
    return await uiwu.post({
        url: 'fans/setInfo',
        data
    })
}

/** 获取设置信息 **/
export const getInfoApi = async(): Promise<any> => {
    return await uiwu.get({
        url: 'fans/getInfo',
    })
}
